package org.example.ruangong.service;

import org.example.ruangong.model.Entry;

import java.util.List;

public interface EntryService {
    void addEntry(Entry entry);

    void putEntry(Entry entry);

    Entry getEntryById(Integer eid);

    void updateEntry(Entry entry, Integer modifierId);

    List<Entry> getEntriesByKey(String key);

    List<Entry> getEntriesByUid(Integer uid);

    boolean keyExists(Integer eid, String key);

    void addKey(Integer eid, String key, Integer userId, Entry entry);

    void deleteKey(Integer eid, String key, Integer userId, Entry entry);

//    void deleteKey(Integer eid, String[] key, Integer userId, Entry entry);
}
